<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




<title>Castle ActiveRecord学习实践（3）：映射基础 - TerryLee's Tech Space - 博客园</title>
<meta name="keywords" content="11,数据持久,12,开源世界,Castle,ActiveRecord学习实践,映射基础">
<meta name="description" content="本文详细介绍了ActiveRecord中的基本映射，对于关联映射会在后续文章中通过一些具体的实例来说明。主要内容简单映射1．ActiveRecordAttribute2. PrimaryKeyAttribute3．CompositeKeyAttribute4．PropertyAttribute5．FieldAttribute">




<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/Terrylee/rss">
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/Terrylee/rsd.xml"> 
  



<link rel="stylesheet" type="text/css" href="index.css" media="all">
</head>
<body>
    <form name="Form1" method="post" action="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>




        <link rel="shortcut icon" href="blogengine.ico">
<!--done-->
<div id="home">
<div id="header">
	<div id="blogTitle">
	<a id="lnkBlogLogo" href="http://www.cnblogs.com/Terrylee/"><img id="blogLogo" src="logo.gif" alt="返回主页"></a>			
		
<!--done-->
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/Terrylee/">TerryLee's Tech Space</a></h1>
<h2>TerryLee技术专栏</h2>



		
	</div><!--end: blogTitle 博客的标题和副标题 -->
	<div id="navigator">
		
<!--done-->
			<ul id="navList">
				<li><a id="MyLinks1_HomeLink" class="menu" href="http://www.cnblogs.com/">博客园</a></li>
				<li><a id="MyLinks1_SpaceLink" class="menu" href="http://space.cnblogs.com/">社区</a></li>
				<li><a id="MyLinks1_MyHomeLink" class="menu" href="http://www.cnblogs.com/Terrylee/">首页</a></li>
				<li><a id="MyLinks1_NewPostLink" class="menu" href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx?opt=1">新随笔</a></li>
				<li><a id="MyLinks1_ContactLink" accesskey="9" class="menu" href="http://space.cnblogs.com/msg/send/TerryLee">联系</a></li>
				<li><a id="MyLinks1_Admin" class="menu" href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx">管理</a></li>
				<li><a id="MyLinks1_Syndication" class="menu" href="http://www.cnblogs.com/Terrylee/rss">订阅</a>
				<a id="MyLinks1_XMLLink" class="aHeaderXML" href="http://www.cnblogs.com/Terrylee/rss"><img src="rss.gif" alt="订阅" style="border-width: 0px;"></a></li>
			</ul>


		<div class="blogStats">
			
			
<!--done-->
随笔- 491&nbsp;
文章- 3&nbsp;
评论- 15367&nbsp;

			
		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->
</div><!--end: header 头部 -->

<div id="main">
	<div id="mainContent">
	<div class="forFlow">
		
					
<!--done-->
<div id="topics">
	<div class="post">
		<h1 class="postTitle">
			<a id="ctl04_TitleUrl" class="postTitle2" href="http://www.cnblogs.com/Terrylee/archive/2006/04/06/367978.html">Castle ActiveRecord学习实践（3）：映射基础</a>
		</h1>
		<div class="clear"></div>
		<div class="postBody">
			<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">摘要：本文详细介绍了<span lang="EN-US">ActiveRecord</span>中的基本映射，对于关联映射会在后续文章中通过一些具体的实例来说明。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">主要内容<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">简单映射<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">．<span lang="EN-US">ActiveRecordAttribute<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">2. PrimaryKeyAttribute<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">3</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">．<span lang="EN-US">CompositeKeyAttribute<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">4</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">．<span lang="EN-US">PropertyAttribute<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">5</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">．<span lang="EN-US">FieldAttribute<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 150%; font-family: 宋体;">一．<span lang="EN-US">ActiveRecordAttribute<o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">每一个实体类都必须继承于基类<span lang="EN-US">ActiveRecordBase</span>，并在实体类上设置特性<span lang="EN-US">ActiveRecordAttribute</span>，示例代码</span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">指定数据库表名</span><span style="color: rgb(0, 128, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">[ActiveRecord(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Blogs</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_74_85_Open_Image" onclick="this.style.display='none'; Codehighlighter1_74_85_Open_Text.style.display='none'; Codehighlighter1_74_85_Closed_Image.style.display='inline'; Codehighlighter1_74_85_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_74_85_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_74_85_Closed_Text.style.display='none'; Codehighlighter1_74_85_Open_Image.style.display='inline'; Codehighlighter1_74_85_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_74_85_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_74_85_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//<br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedblockend.gif" align="top">}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">不指定数据库表名</span><span style="color: rgb(0, 128, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">[ActiveRecord]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_154_165_Open_Image" onclick="this.style.display='none'; Codehighlighter1_154_165_Open_Text.style.display='none'; Codehighlighter1_154_165_Closed_Image.style.display='inline'; Codehighlighter1_154_165_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_154_165_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_154_165_Closed_Text.style.display='none'; Codehighlighter1_154_165_Open_Image.style.display='inline'; Codehighlighter1_154_165_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_154_165_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_154_165_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//<br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: left;" align="left">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">ActiveRecordAttribute</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr style="">
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 105.8pt;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">属性<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 160.6pt;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 159.7pt;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">示例<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Table<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">指定持久化类所对应的数据库表名，如果表名与类名相同，可以省略<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">[ActiveRecord(<span style="color: maroon;">"Blogs"</span>)]<o:p></o:p></span></p>
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">[ActiveRecord(Table<span style="color: fuchsia;">=</span><span style="color: maroon;">"Blogs"</span>)]<o:p></o:p></span></p>
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Schema<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">指定<span lang="EN-US">Schema</span>的名字<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Schema<span style="color: fuchsia;">=</span><span style="color: maroon;">"ARDemo"</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Proxy</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">指定一个接口，在延迟装载时作为代理使用<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">DiscriminatorColumn</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">识别器的字段名<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">DiscriminatorColumn<span style="color: fuchsia;">=</span><span style="color: maroon;">"Blog"</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">DiscriminatorType</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">识别器的字段类型<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">DiscriminatorType<span style="color: fuchsia;">=</span><span style="color: maroon;">"String"</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">DiscriminatorValue</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">识别器字段的值<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Where</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">指定一个附加<span lang="EN-US">SQL</span>的<span lang="EN-US">Where</span>子句<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Where<span style="color: fuchsia;">=</span><span style="color: maroon;">"IsPost = 0"</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Lazy</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">指定是否延迟加载<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Lazy<span style="color: fuchsia;">=</span><span style="color: blue;">true|false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 150%; font-family: 宋体;">二．<span lang="EN-US">PrimaryKeyAttribute<o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">在实体类中，通过<span lang="EN-US">PrimaryKeyAttribute</span>来指定表的主键，示例代码<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">指定主键字段名</span><span style="color: rgb(0, 128, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">[ActiveRecord()]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_67_213_Open_Image" onclick="this.style.display='none'; Codehighlighter1_67_213_Open_Text.style.display='none'; Codehighlighter1_67_213_Closed_Image.style.display='inline'; Codehighlighter1_67_213_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_67_213_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_67_213_Closed_Text.style.display='none'; Codehighlighter1_67_213_Open_Image.style.display='inline'; Codehighlighter1_67_213_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_67_213_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_67_213_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;id;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[PrimaryKey(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">blog_id</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;Id<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_146_210_Open_Image" onclick="this.style.display='none'; Codehighlighter1_146_210_Open_Text.style.display='none'; Codehighlighter1_146_210_Closed_Image.style.display='inline'; Codehighlighter1_146_210_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_146_210_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_146_210_Closed_Text.style.display='none'; Codehighlighter1_146_210_Open_Image.style.display='inline'; Codehighlighter1_146_210_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_146_210_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_146_210_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_161_174_Open_Image" onclick="this.style.display='none'; Codehighlighter1_161_174_Open_Text.style.display='none'; Codehighlighter1_161_174_Closed_Image.style.display='inline'; Codehighlighter1_161_174_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_161_174_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_161_174_Closed_Text.style.display='none'; Codehighlighter1_161_174_Open_Image.style.display='inline'; Codehighlighter1_161_174_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_161_174_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_161_174_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;id;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_189_203_Open_Image" onclick="this.style.display='none'; Codehighlighter1_189_203_Open_Text.style.display='none'; Codehighlighter1_189_203_Closed_Image.style.display='inline'; Codehighlighter1_189_203_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_189_203_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_189_203_Closed_Text.style.display='none'; Codehighlighter1_189_203_Open_Image.style.display='inline'; Codehighlighter1_189_203_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_189_203_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_189_203_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;id&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">不指定主键字段名</span><span style="color: rgb(0, 128, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">[ActiveRecord()]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_284_419_Open_Image" onclick="this.style.display='none'; Codehighlighter1_284_419_Open_Text.style.display='none'; Codehighlighter1_284_419_Closed_Image.style.display='inline'; Codehighlighter1_284_419_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_284_419_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_284_419_Closed_Text.style.display='none'; Codehighlighter1_284_419_Open_Image.style.display='inline'; Codehighlighter1_284_419_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_284_419_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_284_419_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;id;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[PrimaryKey]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;Id<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_352_416_Open_Image" onclick="this.style.display='none'; Codehighlighter1_352_416_Open_Text.style.display='none'; Codehighlighter1_352_416_Closed_Image.style.display='inline'; Codehighlighter1_352_416_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_352_416_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_352_416_Closed_Text.style.display='none'; Codehighlighter1_352_416_Open_Image.style.display='inline'; Codehighlighter1_352_416_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_352_416_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_352_416_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_367_380_Open_Image" onclick="this.style.display='none'; Codehighlighter1_367_380_Open_Text.style.display='none'; Codehighlighter1_367_380_Closed_Image.style.display='inline'; Codehighlighter1_367_380_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_367_380_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_367_380_Closed_Text.style.display='none'; Codehighlighter1_367_380_Open_Image.style.display='inline'; Codehighlighter1_367_380_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_367_380_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_367_380_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;id;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_395_409_Open_Image" onclick="this.style.display='none'; Codehighlighter1_395_409_Open_Text.style.display='none'; Codehighlighter1_395_409_Closed_Image.style.display='inline'; Codehighlighter1_395_409_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_395_409_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_395_409_Closed_Text.style.display='none'; Codehighlighter1_395_409_Open_Image.style.display='inline'; Codehighlighter1_395_409_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_395_409_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_395_409_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;id&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><br>PrimaryKeyAttribute<span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr style="">
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 105.8pt;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">属性<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 160.6pt;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 159.7pt;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">示例<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">PrimaryKeyType</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">主键生成的方式，如果不指定，则默认的方式为<span lang="EN-US">PrimaryKeyType.Native<o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">PrimaryKeyType.Native<o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Column<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">主键字段名称，如果跟属性名相同，可以不用指定<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">PrimaryKey(<span style="color: maroon;">"blog_id"</span>)</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">ColumnType<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">主键字段的类型<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Generator<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">是一个<span lang="EN-US">.NET</span>类的名字，用来为该持久化类的实例生成唯一的标识。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Params<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用<span lang="EN-US">Params</span>来提供<span lang="EN-US">Generator</span>所需要的配置参数或初始化参数<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Length<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">主键字段的长度<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Length</span><span style="font-size: 10pt; color: fuchsia; line-height: 150%; font-family: 宋体;" lang="EN-US">=</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">0<o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">SequenceName<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">当指定主键的生成方式为<span lang="EN-US">Sequence</span>时，序列的名称<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">PrimaryKey(PrimaryKeyType<span style="color: fuchsia;">.</span>Sequence, SequenceName<span style="color: fuchsia;">=</span><span style="color: maroon;">"myseqname"</span>)</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 105.8pt; background-color: transparent;" valign="top" width="141">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">UnsavedValue<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 160.6pt; background-color: transparent;" valign="top" width="214">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用来标志该实例是刚刚创建的，尚未保存。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">主键的生成方式介绍<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr style="">
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 95.4pt;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">名称<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 330.7pt;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Identity</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">对<span lang="EN-US">DB2,MySQL, MS SQL Server, Sybase</span>和<span lang="EN-US">HypersonicSQL</span>的内置标识字段提供支持，生成自增的整型<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Sequence</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">序列，对<span lang="EN-US">DB2,MySQL, PostgreSQL, Oracle</span>的内置标识字段提供支持，生成自增的整型。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><st1:city w:st="on"><st1:place w:st="on"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">HiLo</span></st1:place></st1:city><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">高低位<span lang="EN-US">,</span>使用一个高<span lang="EN-US">/</span>低位算法来高效的生成<span lang="EN-US">Int64, Int32 </span>或者<span lang="EN-US"> Int16</span>类型的标识符。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">SeqHiLo</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">使用序列的高低位<span lang="EN-US">,</span>使用一个高<span lang="EN-US">/</span>低位算法来高效的生成<span lang="EN-US">Int64, Int32 </span>或者<span lang="EN-US"> Int16</span>类型的标识符，给定一个数据库序列（<span lang="EN-US">sequence)</span>的名字。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">UuidHex</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用一个<span lang="EN-US">System.Guid</span>和它的<span lang="EN-US">ToString(string format)</span>方法生成字符串类型的标识符。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">UuidString</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用一个新的<span lang="EN-US">System.Guid</span>产生一个<span lang="EN-US">byte[] </span>，把它转换成字符串。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Guid</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用一个新的<span lang="EN-US">System.Guid </span>作为标识符。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">GuidComb</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用<span lang="EN-US">Jimmy Nilsso</span>的一个算法产生一个新的<span lang="EN-US">System.Guid</span>。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Native</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">根据底层数据库的能力选择<span lang="EN-US"> identity, sequence </span>或者<span lang="EN-US"> hilo</span>中的一个。默认值。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Assigned</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">让应用程序在自己为对象分配一个标示符。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 95.4pt; background-color: transparent;" valign="top" width="127">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Foreign</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 330.7pt; background-color: transparent;" valign="top" width="441">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">使用另外一个相关联的对象的标识符。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 150%; font-family: 宋体;">三．<span lang="EN-US">CompositeKeyAttribute<o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">如果使用组合键，需要我们自定义一个类来作为主键属性的类型。示例代码</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[PrimaryKey]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;MyCompositeKey&nbsp;ID<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_40_96_Open_Image" onclick="this.style.display='none'; Codehighlighter1_40_96_Open_Text.style.display='none'; Codehighlighter1_40_96_Closed_Image.style.display='inline'; Codehighlighter1_40_96_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_40_96_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_40_96_Closed_Text.style.display='none'; Codehighlighter1_40_96_Open_Image.style.display='inline'; Codehighlighter1_40_96_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_40_96_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_40_96_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_51_66_Open_Image" onclick="this.style.display='none'; Codehighlighter1_51_66_Open_Text.style.display='none'; Codehighlighter1_51_66_Closed_Image.style.display='inline'; Codehighlighter1_51_66_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_51_66_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_51_66_Closed_Text.style.display='none'; Codehighlighter1_51_66_Open_Image.style.display='inline'; Codehighlighter1_51_66_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_51_66_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_51_66_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_key;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_77_93_Open_Image" onclick="this.style.display='none'; Codehighlighter1_77_93_Open_Text.style.display='none'; Codehighlighter1_77_93_Closed_Image.style.display='inline'; Codehighlighter1_77_93_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_77_93_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_77_93_Closed_Text.style.display='none'; Codehighlighter1_77_93_Open_Image.style.display='inline'; Codehighlighter1_77_93_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_77_93_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_77_93_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_key&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: left;" align="left"><br>对于组合键类，除了需要加上<span lang="EN-US">CompositeKey</span>特性之外，它还需要是可序列化的，并且要求实现<span lang="EN-US">Equals</span>和<span lang="EN-US">GetHashCode</span>方法。<span lang="EN-US">ActiveRecord</span>官方网站上提供的一个组合键的示例程序如下：<span lang="EN-US"><o:p></o:p></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[CompositeKey,&nbsp;Serializable]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;MyCompositeKey<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_59_1029_Open_Image" onclick="this.style.display='none'; Codehighlighter1_59_1029_Open_Text.style.display='none'; Codehighlighter1_59_1029_Closed_Image.style.display='inline'; Codehighlighter1_59_1029_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_59_1029_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_59_1029_Closed_Text.style.display='none'; Codehighlighter1_59_1029_Open_Image.style.display='inline'; Codehighlighter1_59_1029_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_59_1029_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_59_1029_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyA;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyB;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[KeyProperty]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">virtual</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;KeyA<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_174_244_Open_Image" onclick="this.style.display='none'; Codehighlighter1_174_244_Open_Text.style.display='none'; Codehighlighter1_174_244_Closed_Image.style.display='inline'; Codehighlighter1_174_244_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_174_244_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_174_244_Closed_Text.style.display='none'; Codehighlighter1_174_244_Open_Image.style.display='inline'; Codehighlighter1_174_244_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_174_244_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_174_244_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_189_205_Open_Image" onclick="this.style.display='none'; Codehighlighter1_189_205_Open_Text.style.display='none'; Codehighlighter1_189_205_Closed_Image.style.display='inline'; Codehighlighter1_189_205_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_189_205_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_189_205_Closed_Text.style.display='none'; Codehighlighter1_189_205_Open_Image.style.display='inline'; Codehighlighter1_189_205_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_189_205_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_189_205_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyA;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_220_237_Open_Image" onclick="this.style.display='none'; Codehighlighter1_220_237_Open_Text.style.display='none'; Codehighlighter1_220_237_Closed_Image.style.display='inline'; Codehighlighter1_220_237_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_220_237_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_220_237_Closed_Text.style.display='none'; Codehighlighter1_220_237_Open_Image.style.display='inline'; Codehighlighter1_220_237_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_220_237_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_220_237_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_keyA&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[KeyProperty]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">virtual</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;KeyB<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_305_375_Open_Image" onclick="this.style.display='none'; Codehighlighter1_305_375_Open_Text.style.display='none'; Codehighlighter1_305_375_Closed_Image.style.display='inline'; Codehighlighter1_305_375_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_305_375_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_305_375_Closed_Text.style.display='none'; Codehighlighter1_305_375_Open_Image.style.display='inline'; Codehighlighter1_305_375_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_305_375_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_305_375_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_320_336_Open_Image" onclick="this.style.display='none'; Codehighlighter1_320_336_Open_Text.style.display='none'; Codehighlighter1_320_336_Closed_Image.style.display='inline'; Codehighlighter1_320_336_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_320_336_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_320_336_Closed_Text.style.display='none'; Codehighlighter1_320_336_Open_Image.style.display='inline'; Codehighlighter1_320_336_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_320_336_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_320_336_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyB;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_351_368_Open_Image" onclick="this.style.display='none'; Codehighlighter1_351_368_Open_Text.style.display='none'; Codehighlighter1_351_368_Closed_Image.style.display='inline'; Codehighlighter1_351_368_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_351_368_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_351_368_Closed_Text.style.display='none'; Codehighlighter1_351_368_Open_Image.style.display='inline'; Codehighlighter1_351_368_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_351_368_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_351_368_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_keyB&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">override</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;ToString()<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_424_498_Open_Image" onclick="this.style.display='none'; Codehighlighter1_424_498_Open_Text.style.display='none'; Codehighlighter1_424_498_Closed_Image.style.display='inline'; Codehighlighter1_424_498_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_424_498_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_424_498_Closed_Text.style.display='none'; Codehighlighter1_424_498_Open_Image.style.display='inline'; Codehighlighter1_424_498_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_424_498_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_424_498_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_473_488_Open_Image" onclick="this.style.display='none'; Codehighlighter1_473_488_Open_Text.style.display='none'; Codehighlighter1_473_488_Closed_Image.style.display='inline'; Codehighlighter1_473_488_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_473_488_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_473_488_Closed_Text.style.display='none'; Codehighlighter1_473_488_Open_Image.style.display='inline'; Codehighlighter1_473_488_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">.Join(&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">[]&nbsp;</span><span id="Codehighlighter1_473_488_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_473_488_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_keyA,&nbsp;_keyB&nbsp;}</span></span><span style="color: rgb(0, 0, 0);">&nbsp;);<br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">override</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">bool</span><span style="color: rgb(0, 0, 0);">&nbsp;Equals(&nbsp;</span><span style="color: rgb(0, 0, 255);">object</span><span style="color: rgb(0, 0, 0);">&nbsp;obj&nbsp;)<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_555_911_Open_Image" onclick="this.style.display='none'; Codehighlighter1_555_911_Open_Text.style.display='none'; Codehighlighter1_555_911_Closed_Image.style.display='inline'; Codehighlighter1_555_911_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_555_911_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_555_911_Closed_Text.style.display='none'; Codehighlighter1_555_911_Open_Image.style.display='inline'; Codehighlighter1_555_911_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_555_911_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_555_911_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(&nbsp;obj&nbsp;</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">&nbsp;)&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(&nbsp;obj&nbsp;</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">&nbsp;obj.GetType()&nbsp;</span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.GetType()&nbsp;)&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MyCompositeKey&nbsp;test&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;(&nbsp;MyCompositeKey&nbsp;)&nbsp;obj;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;(&nbsp;_keyA&nbsp;</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">&nbsp;test.KeyA&nbsp;</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">&nbsp;(_keyA&nbsp;</span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyA.Equals(&nbsp;test.KeyA&nbsp;)&nbsp;)&nbsp;)&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(&nbsp;_keyB&nbsp;</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">&nbsp;test.KeyB&nbsp;</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">&nbsp;(&nbsp;_keyB&nbsp;</span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyB.Equals(&nbsp;test.KeyB&nbsp;)&nbsp;)&nbsp;);<br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">override</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;GetHashCode()<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_960_1026_Open_Image" onclick="this.style.display='none'; Codehighlighter1_960_1026_Open_Text.style.display='none'; Codehighlighter1_960_1026_Closed_Image.style.display='inline'; Codehighlighter1_960_1026_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_960_1026_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_960_1026_Closed_Text.style.display='none'; Codehighlighter1_960_1026_Open_Image.style.display='inline'; Codehighlighter1_960_1026_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_960_1026_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_960_1026_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyA.GetHashCode()&nbsp;</span><span style="color: rgb(0, 0, 0);">^</span><span style="color: rgb(0, 0, 0);">&nbsp;_keyB.GetHashCode();<br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: left;" align="left">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 150%; font-family: 宋体;">四．<span lang="EN-US">PropertyAttribute<o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: left;" align="left"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">在<span lang="EN-US">ActiveRecord</span>中通过<span lang="EN-US">PropertyAttribute</span>来指定实体类属性与数据库中的字段映射。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[ActiveRecord()]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_56_187_Open_Image" onclick="this.style.display='none'; Codehighlighter1_56_187_Open_Text.style.display='none'; Codehighlighter1_56_187_Closed_Image.style.display='inline'; Codehighlighter1_56_187_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_56_187_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_56_187_Closed_Text.style.display='none'; Codehighlighter1_56_187_Open_Image.style.display='inline'; Codehighlighter1_56_187_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_56_187_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_56_187_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">不指定字段名</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;Name<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_114_184_Open_Image" onclick="this.style.display='none'; Codehighlighter1_114_184_Open_Text.style.display='none'; Codehighlighter1_114_184_Closed_Image.style.display='inline'; Codehighlighter1_114_184_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_114_184_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_114_184_Closed_Text.style.display='none'; Codehighlighter1_114_184_Open_Image.style.display='inline'; Codehighlighter1_114_184_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_114_184_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_114_184_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_129_145_Open_Image" onclick="this.style.display='none'; Codehighlighter1_129_145_Open_Text.style.display='none'; Codehighlighter1_129_145_Closed_Image.style.display='inline'; Codehighlighter1_129_145_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_129_145_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_129_145_Closed_Text.style.display='none'; Codehighlighter1_129_145_Open_Image.style.display='inline'; Codehighlighter1_129_145_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_129_145_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_129_145_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_160_177_Open_Image" onclick="this.style.display='none'; Codehighlighter1_160_177_Open_Text.style.display='none'; Codehighlighter1_160_177_Closed_Image.style.display='inline'; Codehighlighter1_160_177_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_160_177_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_160_177_Closed_Text.style.display='none'; Codehighlighter1_160_177_Open_Image.style.display='inline'; Codehighlighter1_160_177_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_160_177_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_160_177_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">[ActiveRecord()]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_249_392_Open_Image" onclick="this.style.display='none'; Codehighlighter1_249_392_Open_Text.style.display='none'; Codehighlighter1_249_392_Closed_Image.style.display='inline'; Codehighlighter1_249_392_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_249_392_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_249_392_Closed_Text.style.display='none'; Codehighlighter1_249_392_Open_Image.style.display='inline'; Codehighlighter1_249_392_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_249_392_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_249_392_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">指定字段名</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">blog_name</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;Name<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_319_389_Open_Image" onclick="this.style.display='none'; Codehighlighter1_319_389_Open_Text.style.display='none'; Codehighlighter1_319_389_Closed_Image.style.display='inline'; Codehighlighter1_319_389_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_319_389_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_319_389_Closed_Text.style.display='none'; Codehighlighter1_319_389_Open_Image.style.display='inline'; Codehighlighter1_319_389_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_319_389_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_319_389_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_334_350_Open_Image" onclick="this.style.display='none'; Codehighlighter1_334_350_Open_Text.style.display='none'; Codehighlighter1_334_350_Closed_Image.style.display='inline'; Codehighlighter1_334_350_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_334_350_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_334_350_Closed_Text.style.display='none'; Codehighlighter1_334_350_Open_Image.style.display='inline'; Codehighlighter1_334_350_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_334_350_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_334_350_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_365_382_Open_Image" onclick="this.style.display='none'; Codehighlighter1_365_382_Open_Text.style.display='none'; Codehighlighter1_365_382_Closed_Image.style.display='inline'; Codehighlighter1_365_382_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_365_382_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_365_382_Closed_Text.style.display='none'; Codehighlighter1_365_382_Open_Image.style.display='inline'; Codehighlighter1_365_382_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_365_382_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_365_382_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><br>PropertyAttribute<span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr style="">
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 86.4pt;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">属性<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 180pt;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 159.7pt;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">示例<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Column</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">对应的数据库字段名<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Property(<span style="color: maroon;">"blog_name"</span>)</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">ColumnType</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">对应的字段类型<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Formula</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">一个<span lang="EN-US">SQL</span>表达式，定义了这个计算（<span lang="EN-US">computed</span>） 属性的值。计算属性没有和它对应的数据库字段。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">UnsavedValue</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用来标志该实例是刚刚创建的，尚未保存。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Length</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">字段的长度<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Length<span style="color: fuchsia;">=</span>10</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">NotNull</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">是否可以为空<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">NotNull<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Unique<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">是否允许重复<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Unique<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Update</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">表明在用于<span lang="EN-US">UPDATE </span>的<span lang="EN-US">SQL</span>语句中是否包含这个字段。默认为<span lang="EN-US">true<o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Update<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Insert</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">表明在用于<span lang="EN-US">INSERT</span>的<span lang="EN-US">SQL</span>语句中是否包含这个字段。默认为<span lang="EN-US">true<o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Insert<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 150%; font-family: 宋体;">五．<span lang="EN-US">FieldAttribute<o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">在<span lang="EN-US">ActiveRecord</span>中，允许我们直接对<span lang="EN-US">Field</span>进行映射，使用<span lang="EN-US">FieldAttribute<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[ActiveRecord()]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_56_106_Open_Image" onclick="this.style.display='none'; Codehighlighter1_56_106_Open_Text.style.display='none'; Codehighlighter1_56_106_Closed_Image.style.display='inline'; Codehighlighter1_56_106_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_56_106_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_56_106_Closed_Text.style.display='none'; Codehighlighter1_56_106_Open_Image.style.display='inline'; Codehighlighter1_56_106_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_56_106_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_56_106_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">不指定字段名称</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Field]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;<br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">[ActiveRecord()]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Blog&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_168_230_Open_Image" onclick="this.style.display='none'; Codehighlighter1_168_230_Open_Text.style.display='none'; Codehighlighter1_168_230_Closed_Image.style.display='inline'; Codehighlighter1_168_230_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_168_230_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_168_230_Closed_Text.style.display='none'; Codehighlighter1_168_230_Open_Image.style.display='inline'; Codehighlighter1_168_230_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_168_230_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_168_230_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">指定字段名称</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Field(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">blog_name</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;<br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><br>FieldAttribute<span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr style="">
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 86.4pt;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">属性<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 180pt;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 159.7pt;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">示例<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Column</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">对应的数据库字段名<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Property(<span style="color: maroon;">"blog_name"</span>)</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">ColumnType</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">对应的字段类型<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Formula</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">一个<span lang="EN-US">SQL</span>表达式，定义了这个计算（<span lang="EN-US">computed</span>） 属性的值。计算属性没有和它对应的数据库字段。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">UnsavedValue</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">用来标志该实例是刚刚创建的，尚未保存。<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Length</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">字段的长度<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Length<span style="color: fuchsia;">=</span>10</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">NotNull</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">是否可以为空<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">NotNull<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Unique<o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">是否允许重复<span lang="EN-US"><o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Unique<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Update</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">表明在用于<span lang="EN-US">UPDATE </span>的<span lang="EN-US">SQL</span>语句中是否包含这个字段。默认为<span lang="EN-US">true<o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Update<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Insert</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 180pt; background-color: transparent;" valign="top" width="240">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">表明在用于<span lang="EN-US">INSERT</span>的<span lang="EN-US">SQL</span>语句中是否包含这个字段。默认为<span lang="EN-US">true<o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 159.7pt; background-color: transparent;" valign="top" width="213">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Insert<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 150%; font-family: 宋体;">六．<span lang="EN-US">NestedAttribute<o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">在映射的时候我们也可以用子对象来映射数据库中的字段，示例代码</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[ActiveRecord]<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Company&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_57_231_Open_Image" onclick="this.style.display='none'; Codehighlighter1_57_231_Open_Text.style.display='none'; Codehighlighter1_57_231_Closed_Image.style.display='inline'; Codehighlighter1_57_231_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_57_231_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_57_231_Closed_Text.style.display='none'; Codehighlighter1_57_231_Open_Image.style.display='inline'; Codehighlighter1_57_231_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_57_231_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_57_231_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;PostalAddress&nbsp;_address;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Nested]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;PostalAddress&nbsp;Address<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_152_228_Open_Image" onclick="this.style.display='none'; Codehighlighter1_152_228_Open_Text.style.display='none'; Codehighlighter1_152_228_Closed_Image.style.display='inline'; Codehighlighter1_152_228_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_152_228_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_152_228_Closed_Text.style.display='none'; Codehighlighter1_152_228_Open_Image.style.display='inline'; Codehighlighter1_152_228_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_152_228_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_152_228_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_167_186_Open_Image" onclick="this.style.display='none'; Codehighlighter1_167_186_Open_Text.style.display='none'; Codehighlighter1_167_186_Closed_Image.style.display='inline'; Codehighlighter1_167_186_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_167_186_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_167_186_Closed_Text.style.display='none'; Codehighlighter1_167_186_Open_Image.style.display='inline'; Codehighlighter1_167_186_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_167_186_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_167_186_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_address;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_201_221_Open_Image" onclick="this.style.display='none'; Codehighlighter1_201_221_Open_Text.style.display='none'; Codehighlighter1_201_221_Closed_Image.style.display='inline'; Codehighlighter1_201_221_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_201_221_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_201_221_Closed_Text.style.display='none'; Codehighlighter1_201_221_Open_Image.style.display='inline'; Codehighlighter1_201_221_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_201_221_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_201_221_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_address&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;PostalAddress<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_265_1145_Open_Image" onclick="this.style.display='none'; Codehighlighter1_265_1145_Open_Text.style.display='none'; Codehighlighter1_265_1145_Closed_Image.style.display='inline'; Codehighlighter1_265_1145_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_265_1145_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_265_1145_Closed_Text.style.display='none'; Codehighlighter1_265_1145_Open_Image.style.display='inline'; Codehighlighter1_265_1145_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_265_1145_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_265_1145_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;_address;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;_city;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;_state;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;_zipcode;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;PostalAddress()<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_418_425_Open_Image" onclick="this.style.display='none'; Codehighlighter1_418_425_Open_Text.style.display='none'; Codehighlighter1_418_425_Closed_Image.style.display='inline'; Codehighlighter1_418_425_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_418_425_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_418_425_Closed_Text.style.display='none'; Codehighlighter1_418_425_Open_Image.style.display='inline'; Codehighlighter1_418_425_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_418_425_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_418_425_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;PostalAddress(String&nbsp;address,&nbsp;String&nbsp;city,<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;state,&nbsp;String&nbsp;zipcode)<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_529_642_Open_Image" onclick="this.style.display='none'; Codehighlighter1_529_642_Open_Text.style.display='none'; Codehighlighter1_529_642_Closed_Image.style.display='inline'; Codehighlighter1_529_642_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_529_642_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_529_642_Closed_Text.style.display='none'; Codehighlighter1_529_642_Open_Image.style.display='inline'; Codehighlighter1_529_642_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_529_642_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_529_642_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_address&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;address;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_city&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;city;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_state&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;state;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_zipcode&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;zipcode;<br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;Address<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_695_771_Open_Image" onclick="this.style.display='none'; Codehighlighter1_695_771_Open_Text.style.display='none'; Codehighlighter1_695_771_Closed_Image.style.display='inline'; Codehighlighter1_695_771_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_695_771_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_695_771_Closed_Text.style.display='none'; Codehighlighter1_695_771_Open_Image.style.display='inline'; Codehighlighter1_695_771_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_695_771_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_695_771_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_710_729_Open_Image" onclick="this.style.display='none'; Codehighlighter1_710_729_Open_Text.style.display='none'; Codehighlighter1_710_729_Closed_Image.style.display='inline'; Codehighlighter1_710_729_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_710_729_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_710_729_Closed_Text.style.display='none'; Codehighlighter1_710_729_Open_Image.style.display='inline'; Codehighlighter1_710_729_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_710_729_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_710_729_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_address;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_744_764_Open_Image" onclick="this.style.display='none'; Codehighlighter1_744_764_Open_Text.style.display='none'; Codehighlighter1_744_764_Closed_Image.style.display='inline'; Codehighlighter1_744_764_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_744_764_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_744_764_Closed_Text.style.display='none'; Codehighlighter1_744_764_Open_Image.style.display='inline'; Codehighlighter1_744_764_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_744_764_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_744_764_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_address&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;City<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_821_890_Open_Image" onclick="this.style.display='none'; Codehighlighter1_821_890_Open_Text.style.display='none'; Codehighlighter1_821_890_Closed_Image.style.display='inline'; Codehighlighter1_821_890_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_821_890_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_821_890_Closed_Text.style.display='none'; Codehighlighter1_821_890_Open_Image.style.display='inline'; Codehighlighter1_821_890_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_821_890_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_821_890_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_836_852_Open_Image" onclick="this.style.display='none'; Codehighlighter1_836_852_Open_Text.style.display='none'; Codehighlighter1_836_852_Closed_Image.style.display='inline'; Codehighlighter1_836_852_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_836_852_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_836_852_Closed_Text.style.display='none'; Codehighlighter1_836_852_Open_Image.style.display='inline'; Codehighlighter1_836_852_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_836_852_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_836_852_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_city;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_867_883_Open_Image" onclick="this.style.display='none'; Codehighlighter1_867_883_Open_Text.style.display='none'; Codehighlighter1_867_883_Closed_Image.style.display='inline'; Codehighlighter1_867_883_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_867_883_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_867_883_Closed_Text.style.display='none'; Codehighlighter1_867_883_Open_Image.style.display='inline'; Codehighlighter1_867_883_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_867_883_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_867_883_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_city&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;State<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_941_1013_Open_Image" onclick="this.style.display='none'; Codehighlighter1_941_1013_Open_Text.style.display='none'; Codehighlighter1_941_1013_Closed_Image.style.display='inline'; Codehighlighter1_941_1013_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_941_1013_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_941_1013_Closed_Text.style.display='none'; Codehighlighter1_941_1013_Open_Image.style.display='inline'; Codehighlighter1_941_1013_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_941_1013_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_941_1013_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_956_973_Open_Image" onclick="this.style.display='none'; Codehighlighter1_956_973_Open_Text.style.display='none'; Codehighlighter1_956_973_Closed_Image.style.display='inline'; Codehighlighter1_956_973_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_956_973_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_956_973_Closed_Text.style.display='none'; Codehighlighter1_956_973_Open_Image.style.display='inline'; Codehighlighter1_956_973_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_956_973_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_956_973_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_state;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_988_1006_Open_Image" onclick="this.style.display='none'; Codehighlighter1_988_1006_Open_Text.style.display='none'; Codehighlighter1_988_1006_Closed_Image.style.display='inline'; Codehighlighter1_988_1006_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_988_1006_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_988_1006_Closed_Text.style.display='none'; Codehighlighter1_988_1006_Open_Image.style.display='inline'; Codehighlighter1_988_1006_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_988_1006_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_988_1006_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_state&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property]<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;String&nbsp;ZipCode<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_1066_1142_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1066_1142_Open_Text.style.display='none'; Codehighlighter1_1066_1142_Closed_Image.style.display='inline'; Codehighlighter1_1066_1142_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1066_1142_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1066_1142_Closed_Text.style.display='none'; Codehighlighter1_1066_1142_Open_Image.style.display='inline'; Codehighlighter1_1066_1142_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1066_1142_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1066_1142_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_1081_1100_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1081_1100_Open_Text.style.display='none'; Codehighlighter1_1081_1100_Closed_Image.style.display='inline'; Codehighlighter1_1081_1100_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1081_1100_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1081_1100_Closed_Text.style.display='none'; Codehighlighter1_1081_1100_Open_Image.style.display='inline'; Codehighlighter1_1081_1100_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_1081_1100_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1081_1100_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_zipcode;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_1115_1135_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1115_1135_Open_Text.style.display='none'; Codehighlighter1_1115_1135_Closed_Image.style.display='inline'; Codehighlighter1_1115_1135_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1115_1135_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1115_1135_Closed_Text.style.display='none'; Codehighlighter1_1115_1135_Open_Image.style.display='inline'; Codehighlighter1_1115_1135_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_1115_1135_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1115_1135_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_zipcode&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">NestedAttribute</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr style="">
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 86.4pt;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">属性<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 216pt;" valign="top" width="288">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">说明<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 123.7pt;" valign="top" width="165">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%; text-align: center;" align="center"><b style=""><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">示例<span lang="EN-US"><o:p></o:p></span></span></b></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Update</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 216pt; background-color: transparent;" valign="top" width="288">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">表明在用于<span lang="EN-US">UPDATE </span>的<span lang="EN-US">SQL</span>语句中是否包含这个字段。默认为<span lang="EN-US">true<o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 123.7pt; background-color: transparent;" valign="top" width="165">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Update<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 86.4pt; background-color: transparent;" valign="top" width="115">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Insert</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 216pt; background-color: transparent;" valign="top" width="288">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">表明在用于<span lang="EN-US">INSERT</span>的<span lang="EN-US">SQL</span>语句中是否包含这个字段。默认为<span lang="EN-US">true<o:p></o:p></span></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 123.7pt; background-color: transparent;" valign="top" width="165">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Insert<span style="color: fuchsia;">=</span><span style="color: blue;">true</span>|<span style="color: blue;">false</span></span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">基本的映射就介绍这么多了，剩下的还有版本（<span lang="EN-US">VersionAttribute</span>），时间戳（<span lang="EN-US">TimestampAttribute</span>）等映射大家可以参考相关的文档。在下篇文章中我会通过一个具体的实例介绍实现<span lang="EN-US">One-Many/Many-One</span>映射。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 150%; font-family: 宋体;">参考资料<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;" lang="EN-US">Castle</span><span style="font-size: 10pt; line-height: 150%; font-family: 宋体;">的官方网站<span lang="EN-US"><span><a href="http://www.castleproject.org/" class="smarterwiki-linkify">http://www.castleproject.org</a></span><o:p></o:p></span></span></p>
<div id="MySignature">作者：<a href="http://terrylee.cnblogs.com/">TerryLee</a><br>
出处：<a href="http://terrylee.cnblogs.com/">http://terrylee.cnblogs.com</a>
<br>
本文版权归作者和博客园共有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。
</div>
<div id="digg_block">
<div id="div_digg">										
	<div class="diggit" onclick="DiggIt(367978,14203,1)"> 
		<span class="diggnum" id="digg_count_367978">1</span>
	</div>
	<div class="buryit" onclick="DiggIt(367978,14203,2)"> 
		<span class="burynum" id="bury_count_367978">0</span>
	</div>
	<div class="clear"></div>
	<span style="display: none;" id="span_isdigged_367978">0</span>	
	<div class="diggword" id="digg_word_367978">(请您对文章做出评价)</div>	
</div>
</div>
<div class="clear"></div>
<div id="post_next_prev">
<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/05/367381.html">« </a> 上一篇：<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/05/367381.html" title="发布于2006-04-05 12:38">Castle ActiveRecord学习实践（2）：构建配置信息</a><br>
<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/06/368471.html">» </a> 下一篇：<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/06/368471.html" title="发布于2006-04-06 16:28">Castle ActiveRecord学习实践（4）：实现One-Many关系的映射</a><br>
</div>








		</div>
		<div class="postDesc">posted @ 2006-04-06 08:28 <a href="http://www.cnblogs.com/Terrylee/">TerryLee</a> 阅读(13597) <a href="#commentform">评论(31)</a> &nbsp;<a href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx?postid=367978">编辑</a> <a href="http://www.cnblogs.com/Terrylee/AddToFavorite.aspx?id=367978">收藏</a> <a href="#" onclick="PutInWz();return false;">网摘</a>  所属分类: <a href="http://www.cnblogs.com/Terrylee/category/48535.html">[11]&nbsp;&nbsp;数据持久</a>, <a href="http://www.cnblogs.com/Terrylee/category/53293.html">[12]&nbsp;&nbsp;开源世界</a></div>
	</div>
	<img src="367978.html" height="1" width="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/Terrylee/archive/2006/04/06/367978.html"
dc:identifier="http://www.cnblogs.com/Terrylee/archive/2006/04/06/367978.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/Terrylee/services/trackbacks/367978.aspx" />
</rdf:RDF>
-->

</div><!--end: topics 文章、评论容器-->
<a name="pagedcomment"></a>
<!--done-->
<br>
<div class="feedback_area_title">发表评论</div>
<div class="feedbackNoItems"><span id="span_comment_maxid" style="display: none;">1519150</span></div>
	

		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("windwolf",368117,"ihacHRAjjgUa7JN+MQ+MKgcBBn0UWY2Nt23eplzqVI7vMXJ1F62D8Q==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(368117,"ihacHRAjjgUa7JN+MQ+MKgcBBn0UWY2Nt23eplzqVI7vMXJ1F62D8Q==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=windwolf" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl00$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#368117">#1楼</a><a name="368117" id="comment_anchor_368117"></a>2006-04-06 10:32 | <a id="Comments1_CommentList_ctl00_NameLink" href="http://www.cnblogs.com/windwolfreal/" target="_top">windwolf</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/windwolf" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_368117" class="blog_comment_body">看起来就是把nh的映射文件属性化了
<br>nested的概念是否就是nh里的one2one的概念?</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Terrylee",368185,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(368185,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Terrylee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl01$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#368185">#2楼</a><a name="368185" id="comment_anchor_368185"></a>[<span class="louzhu">楼主</span>]2006-04-06 11:35 | <a id="Comments1_CommentList_ctl01_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">Terrylee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Terrylee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_368185" class="blog_comment_body">@windwolf
<br>ActiveRecord就是利用特性来代替了NH中的映射文件
<br>
<br>nested并不是one2one的概念，它是对应的同一实体类，只不同通过一些子对象来实现映射。
<br>
<br>one2one对应的是不同的实体类，通过OneToOneAttribute来实现。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("wujun",414563,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(414563,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl02$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#414563">#3楼</a><a name="414563" id="comment_anchor_414563"></a>2006-06-01 10:05 | <a id="Comments1_CommentList_ctl02_NameLink" target="_blank">wujun[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_414563" class="blog_comment_body">我用了你有User这个类的一个例子，发现在执行user.Create();程序报错信息“could not perform save for user”，不知道什么原因，我是第一次用ActiveRecord。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",414660,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(414660,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl03$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#414660">#4楼</a><a name="414660" id="comment_anchor_414660"></a>[<span class="louzhu">楼主</span>]2006-06-01 11:04 | <a id="Comments1_CommentList_ctl03_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_414660" class="blog_comment_body">@wujun
<br>
<br>1.看User有没有继承与ActiveRecordBase，并且在类上使用特性[ActiveRecord]
<br>
<br>2.看有没有初始化
<br>ActiveRecordStarter.Initialize( source, typeof(User) );</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("初学ActiveRecord",417860,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(417860,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl04$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#417860">#5楼</a><a name="417860" id="comment_anchor_417860"></a>2006-06-05 17:16 | <a id="Comments1_CommentList_ctl04_NameLink" target="_blank">初学ActiveRecord[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_417860" class="blog_comment_body">@TerryLee
<br>
<br>Could not perform Save for BlogCastle.ActiveRecord
<br>有Blog这个类
<br>初始化方法:
<br> void Application_Start(object sender, EventArgs e) 
<br>    {
<br>        IConfigurationSource source = System.Configuration.ConfigurationManager.GetSection("activerecord") as IConfigurationSource;
<br>
<br>        Type[] paramTypes = new Type[3];
<br>        paramTypes[0] = typeof(User1);
<br>        paramTypes[1] = typeof(Post);
<br>        paramTypes[2] = typeof(Blog);
<br>        ActiveRecordStarter.Initialize(source, paramTypes);
<br>      //  IConfigurationSource source = System.Configuration.ConfigurationManager.GetSection("activerecord") as IConfigurationSource; 
<br>        // 在应用程序启动时运行的代码
<br>
<br>    }</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",417888,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(417888,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl05$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#417888">#6楼</a><a name="417888" id="comment_anchor_417888"></a>[<span class="louzhu">楼主</span>]2006-06-05 17:34 | <a id="Comments1_CommentList_ctl05_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_417888" class="blog_comment_body">@初学ActiveRecord
<br>你是不是用的是.NET2.0？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",417889,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(417889,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl06$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#417889">#7楼</a><a name="417889" id="comment_anchor_417889"></a>[<span class="louzhu">楼主</span>]2006-06-05 17:34 | <a id="Comments1_CommentList_ctl06_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_417889" class="blog_comment_body">@初学ActiveRecord
<br>你是不是用的是.NET2.0？
<br>
<br>看一下AR的版本是否正确？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("初学ActiveRecord",417919,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(417919,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl07$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#417919">#8楼</a><a name="417919" id="comment_anchor_417919"></a>2006-06-05 17:59 | <a id="Comments1_CommentList_ctl07_NameLink" target="_blank">初学ActiveRecord[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_417919" class="blog_comment_body">是用的2.0啊,AR版本也是2.0的啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",417937,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(417937,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl08$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#417937">#9楼</a><a name="417937" id="comment_anchor_417937"></a>[<span class="louzhu">楼主</span>]2006-06-05 18:19 | <a id="Comments1_CommentList_ctl08_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_417937" class="blog_comment_body">@初学ActiveRecord
<br>这个错误我这儿没有出现
<br>
<br>现在在不能浮现这个错误，我不太清楚是哪儿出错了:)</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("旺旺2006",423055,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(423055,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl09$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#423055">#10楼</a><a name="423055" id="comment_anchor_423055"></a>2006-06-11 12:02 | <a id="Comments1_CommentList_ctl09_NameLink" target="_blank">旺旺2006[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_423055" class="blog_comment_body">@初学ActiveRecord 
<br>这个错误我出现过 ConnectionString 错了</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",431751,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(431751,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl10$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#431751">#11楼</a><a name="431751" id="comment_anchor_431751"></a>[<span class="louzhu">楼主</span>]2006-06-21 16:54 | <a id="Comments1_CommentList_ctl10_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_431751" class="blog_comment_body">@一汐
<br>&lt;add assembly="*"/&gt;是哪儿的？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("风平浪静",450884,"Nr+JKnKN1aR0ymuqp8FtQL4Qp125Y762Pzh9p+egbGqvtkfjptJP6w==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(450884,"Nr+JKnKN1aR0ymuqp8FtQL4Qp125Y762Pzh9p+egbGqvtkfjptJP6w==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%a3%8e%e5%b9%b3%e6%b5%aa%e9%9d%99" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl11$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#450884">#12楼</a><a name="450884" id="comment_anchor_450884"></a>2006-07-14 16:50 | <a id="Comments1_CommentList_ctl11_NameLink" href="http://www.cnblogs.com/tech-faraWay/" target="_top">风平浪静</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%a3%8e%e5%b9%b3%e6%b5%aa%e9%9d%99" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_450884" class="blog_comment_body">@初学ActiveRecord
<br>看看你的实体类是否与数据库中的字段是否对应好：）</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",463297,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(463297,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl12$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#463297">#13楼</a><a name="463297" id="comment_anchor_463297"></a>2006-07-30 12:57 | <a id="Comments1_CommentList_ctl12_NameLink" target="_blank">microshot[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_463297" class="blog_comment_body">@TerryLee
<br>请问组合键的Property如何写？比如用了两个键进行组合
<br>private int _blogId;
<br>private int _communityId;
<br>
<br>[PrimaryKey(PrimaryKeyType.Native, "blog_Id")]
<br>public int BlogId
<br>{
<br>	get
<br>	{
<br>	return this._blogId;
<br>	}
<br>	set
<br>	{
<br>	this._blogId = value;
<br>	}
<br>}
<br>
<br>[PrimaryKey(PrimaryKeyType.Native, "community_Id")]
<br>public int CommunityId
<br>{
<br>	get
<br>	{
<br>	return this._communityId;
<br>             }
<br>	set
<br>	{
<br>		this._communityId = value;
<br>	}
<br>}
<br>
<br>
<br>是不是把这两个属性写在自定义的类里面，那么在原来表对应的类里面不在出现，而加入：
<br>[PrimaryKey]
<br>public MyCompositeKey ID
<br>{
<br>    get { return _key; }
<br>    set { _key = value; }
<br>}
<br>
<br>这样写法可以吗？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",463301,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(463301,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl13$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#463301">#14楼</a><a name="463301" id="comment_anchor_463301"></a>2006-07-30 13:09 | <a id="Comments1_CommentList_ctl13_NameLink" target="_blank">microshot[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_463301" class="blog_comment_body">@TerryLee
<br>另外新建的类需要继承ActiveRecordBase并在开始Initialize吗？
<br>需要对他进行对应表和字段吗
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",463309,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(463309,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl14_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl14$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl14_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#463309">#15楼</a><a name="463309" id="comment_anchor_463309"></a>[<span class="louzhu">楼主</span>]2006-07-30 13:31 | <a id="Comments1_CommentList_ctl14_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_463309" class="blog_comment_body">@microshot
<br>
<br>参见上面的三．CompositeKeyAttribute
<br>
<br>不需要继承ActiveRecordBase，但是它应该是可序列化的</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",463311,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(463311,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl15_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl15$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl15_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#463311">#16楼</a><a name="463311" id="comment_anchor_463311"></a>2006-07-30 13:36 | <a id="Comments1_CommentList_ctl15_NameLink" target="_blank">microshot[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_463311" class="blog_comment_body">@TerryLee
<br>
<br>定义了类myBcKey,并在原来的类中定义了这个类，
<br>编译通过，运行在Initialize（）时直接出现
<br>To use type 'myBcKey' as a composite id it must have two or more properties marked with the [KeyProperty] attribute.
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",463320,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(463320,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl16_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl16$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl16_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#463320">#17楼</a><a name="463320" id="comment_anchor_463320"></a>2006-07-30 13:45 | <a id="Comments1_CommentList_ctl16_NameLink" target="_blank">microshot[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_463320" class="blog_comment_body">@TerryLee
<br>OK了，必须要用KeyProperty：）</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",463336,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(463336,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl17_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl17$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl17_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#463336">#18楼</a><a name="463336" id="comment_anchor_463336"></a>[<span class="louzhu">楼主</span>]2006-07-30 14:01 | <a id="Comments1_CommentList_ctl17_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_463336" class="blog_comment_body">@microshot
<br>-_-</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",483964,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(483964,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=microshot" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl18_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl18$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl18_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#483964">#19楼</a><a name="483964" id="comment_anchor_483964"></a>2006-08-23 09:30 | <a id="Comments1_CommentList_ctl18_NameLink" href="http://www.cnblogs.com/microshot/" target="_top">microshot</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/microshot" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_483964" class="blog_comment_body">@TerryLee
<br>A,B 两张表 一对多的关系，其中B的外键是B的联合主键的其中一个，这个关系怎么配置呢？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("阿武",539323,"9k4RZEUvePQwc078n0i0Glh3mOOrPvwVtjgWxaNR/Z4BNL1runknrQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(539323,"9k4RZEUvePQwc078n0i0Glh3mOOrPvwVtjgWxaNR/Z4BNL1runknrQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%98%bf%e6%ad%a6" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl19_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl19$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl19_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#539323">#20楼</a><a name="539323" id="comment_anchor_539323"></a>2006-10-25 11:55 | <a id="Comments1_CommentList_ctl19_NameLink" href="http://www.cnblogs.com/yyw84/" target="_top">阿武</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%98%bf%e6%ad%a6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_539323" class="blog_comment_body">你好, TerryLee ,非常感谢你这一系统的文章,对我帮助很大.我有一个问题想请教一下,
<br>为什么我我设置了DiscriminatorColumn,DiscriminatorType,DiscriminatorValue 但 FindAll还是把所有数据都获取所有了呢
<br>我的设置如下:
<br>DiscriminatorColumn = "TypeId",
<br>DiscriminatorType = "System.Int32",
<br>DiscriminatorValue = "1"
<br>
<br>在 .net 1.1 和 2.0 下测试了都一样</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",539429,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(539429,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl20_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl20$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl20_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#539429">#21楼</a><a name="539429" id="comment_anchor_539429"></a>[<span class="louzhu">楼主</span>]2006-10-25 13:19 | <a id="Comments1_CommentList_ctl20_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_539429" class="blog_comment_body">@阿武
<br>识别器没测试过，你可以使用Where子句来实现啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("阿武",539501,"9k4RZEUvePQwc078n0i0Glh3mOOrPvwVtjgWxaNR/Z4BNL1runknrQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(539501,"9k4RZEUvePQwc078n0i0Glh3mOOrPvwVtjgWxaNR/Z4BNL1runknrQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%98%bf%e6%ad%a6" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl21_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl21$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl21_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#539501">#22楼</a><a name="539501" id="comment_anchor_539501"></a>2006-10-25 14:10 | <a id="Comments1_CommentList_ctl21_NameLink" href="http://www.cnblogs.com/yyw84/" target="_top">阿武</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%98%bf%e6%ad%a6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_539501" class="blog_comment_body">@TerryLee 
<br>谢谢,我也想到用 Where 来代替,但暂时还没想到两者之间在使用上有什么区别, 或者说 Discriminator 本来就可以当成是 Where 是子一个子集,不知道这样理解有没有问题</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("阿武",539569,"9k4RZEUvePQwc078n0i0Glh3mOOrPvwVtjgWxaNR/Z4BNL1runknrQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(539569,"9k4RZEUvePQwc078n0i0Glh3mOOrPvwVtjgWxaNR/Z4BNL1runknrQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%98%bf%e6%ad%a6" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl22_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl22$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl22_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#539569">#23楼</a><a name="539569" id="comment_anchor_539569"></a>2006-10-25 15:10 | <a id="Comments1_CommentList_ctl22_NameLink" href="http://www.cnblogs.com/yyw84/" target="_top">阿武</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%98%bf%e6%ad%a6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_539569" class="blog_comment_body">刚刚测试了一下,如果添加了Discriminator,那么在添加修改操作TypeId的值就不需要设置了,看来还是跟Where子句配合使用,不知道其它人是不是也是这样处理的</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",540012,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(540012,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl23_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl23$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl23_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#540012">#24楼</a><a name="540012" id="comment_anchor_540012"></a>[<span class="louzhu">楼主</span>]2006-10-25 22:59 | <a id="Comments1_CommentList_ctl23_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_540012" class="blog_comment_body">@阿武
<br>用Where子句完全就可以了，一直都没用过Discriminator</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("row",601914,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601914,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl24_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl24$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl24_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601914">#25楼</a><a name="601914" id="comment_anchor_601914"></a>2006-12-24 01:04 | <a id="Comments1_CommentList_ctl24_NameLink" target="_blank">row[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601914" class="blog_comment_body">hi  terrylee我的偶像,我今天才开始看的castle,我有个问题想请教<br><br>public class Blog : ActiveRecordBase<br><br>如上  业务实体都继承自ActiveRecordBase   它是个接口还是个类啊<br><br>如果是个类,我想请问<br><br>如果我有一个Account类   一个MoneyAccount类<br><br>MoneyAccount类很多属性都是继承自Account的<br><br>我如何处理这个问题<br><br>class Account<br>{<br>   private string name;<br>   public string Name<br>  {<br>      get{return name;}<br>      set{name=value;}<br>  }<br>}<br>class MoneyAccount:Account(我是想这样.C#不是只能继承自1个类吗?那现在怎么解决)<br>{<br>} <br><br><br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("row",601915,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601915,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl25_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl25$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl25_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601915">#26楼</a><a name="601915" id="comment_anchor_601915"></a>2006-12-24 01:07 | <a id="Comments1_CommentList_ctl25_NameLink" target="_blank">row[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601915" class="blog_comment_body">老天保佑你会很快发现我的留言<br><br>保佑  <br><br>谢谢了</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("row",601925,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601925,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl26_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl26$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl26_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601925">#27楼</a><a name="601925" id="comment_anchor_601925"></a>2006-12-24 01:49 | <a id="Comments1_CommentList_ctl26_NameLink" target="_blank">row[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601925" class="blog_comment_body">以解决    谢谢</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",602176,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(602176,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl27_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl27$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl27_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#602176">#28楼</a><a name="602176" id="comment_anchor_602176"></a>[<span class="louzhu">楼主</span>]2006-12-24 15:55 | <a id="Comments1_CommentList_ctl27_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_602176" class="blog_comment_body">@row
<br>不好意思，上午参加培训去了，刚看到
<br>
<br>解决了就好，其实AR是支持这个的</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("gongzhu1258@hotmail.com",840102,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(840102,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl28_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl28$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl28_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#840102">#29楼</a><a name="840102" id="comment_anchor_840102"></a>2007-08-02 12:01 | <a id="Comments1_CommentList_ctl28_NameLink" target="_blank">gongzhu1258@hotmail.com[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_840102" class="blog_comment_body">有没有试过在Nest 类中定义 ：BeLongTo标记，这个不行，不知道是Bug还是有其它设置 方法？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("ζ浮云￠惊龙",1206195,"bBxgkcmUiRMjTZRctVUDyMHSUbaYKtXejcUFsZVeIqAHeCSMw3HFqw==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1206195,"bBxgkcmUiRMjTZRctVUDyMHSUbaYKtXejcUFsZVeIqAHeCSMw3HFqw==")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%ce%b6%e6%b5%ae%e4%ba%91%ef%bf%a0%e6%83%8a%e9%be%99" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl29_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl29$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl29_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1206195">#30楼</a><a name="1206195" id="comment_anchor_1206195"></a>2008-05-22 17:23 | <a id="Comments1_CommentList_ctl29_NameLink" href="http://www.cnblogs.com/bigmouthz/" target="_top">ζ浮云￠惊龙</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%ce%b6%e6%b5%ae%e4%ba%91%ef%bf%a0%e6%83%8a%e9%be%99" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1206195" class="blog_comment_body">非常感谢</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("没钱买烟啦",1519150,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1519150,"")' href="http://terrylee.cnblogs.com/archive/2006/04/06/367978.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl30_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl30$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl30_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1519150">#31楼</a><a name="1519150" id="comment_anchor_1519150"></a><a name="Post"></a>2009-05-04 22:13 | <a id="Comments1_CommentList_ctl30_NameLink" href="http://space.cnblogs.com/60082/" target="_top">没钱买烟啦</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1519150" class="blog_comment_body">求助,我用castle查询14万条数据,其中包含该条件的数据有10万条,查询结果用了一分多钟,请问一下,通过castle查询大量数据时,一般使用何种方式?</span><br>
			</div>
		</div>
	

<div id="ctl05_comment_form" class="commentform">




<div id="ctl05_divLoginPannel">
<div class="login_tips">注册用户登录后才能发表评论，请 <a href="http://passport.cnblogs.com/login.aspx?ReturnUrl=http%3a%2f%2fterrylee.cnblogs.com%2farchive%2f2006%2f04%2f06%2f367978.html%3flogin%3d1%23commentform" class="underline">登录</a> 或 <a href="http://passport.cnblogs.com/register.aspx?ReturnUrl=http%3a%2f%2fterrylee.cnblogs.com%2farchive%2f2006%2f04%2f06%2f367978.html%23Bottom2" class="underline">注册</a> 。</div>
</div>

<div class="itnews c_ad_block" id="itnews">
<a href="http://news.cnblogs.com/" target="_top">IT新闻</a>:<br>

          ·  <a href="http://news.cnblogs.com/n/55114/" target="_top">谷歌联手亚马逊在英国推出Android音乐商店</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55112/" target="_top">Facebook成为Apache软件基金会黄金赞助商</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55111/" target="_top">IBM荣获2009年美国专利申请冠军</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55100/" target="_top">麦当劳美国餐馆Wi-Fi服务全面免费</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55097/" target="_top">Java SE 6更新，性能大幅提升</a><br>
	
</div>


<div id="ad_under_comment" class="c_ad_block">
<a href="http://a4.yeshj.com/rd/34138/" target="_top">每天10分钟，轻松学英语</a><br><br>
<div id="google_ads_div_cnblogs_blogpost_bottom1">
<iframe src="index_1.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom1" id="google_ads_iframe_cnblogs_blogpost_bottom1" scrolling="no" frameborder="0" height="60" width="468"></iframe></div>

<br>
<div id="google_ads_div_cnblogs_blogpost_bottom">
<iframe src="index_2.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom" id="google_ads_iframe_cnblogs_blogpost_bottom" scrolling="no" frameborder="0" height="250" width="300"></iframe></div>

</div>
<div id="site_nav_under" class="c_ad_block">
网站导航：<br>
<a href="http://www.cnblogs.com/" target="_top">博客园首页</a> &nbsp;<a href="http://news.cnblogs.com/" target="_top">IT新闻</a> &nbsp;<a href="http://home.cnblogs.com/" target="_top">个人主页</a> &nbsp;<a href="http://home.cnblogs.com/ing/" target="_top">闪存</a> &nbsp;<a href="http://job.cnblogs.com/" target="_top">程序员招聘</a> &nbsp;<a href="http://space.cnblogs.com/" target="_top">社区</a> &nbsp;<a href="http://space.cnblogs.com/q/" target="_top">博问</a> &nbsp;<a href="http://wz.cnblogs.com/" target="_top">网摘</a>
</div>
<div id="ad_under_comment2" class="c_ad_block">
<a href="http://www.china-pub.com/STATIC07/0912/zh_ndcx_091212.asp" target="_top"><img src="chinapub_20091222.jpg" alt="" style="border: 0px none ;"></a><br>
<a href="http://www.china-pub.com/itbook/" target="_top">China-pub 计算机图书网上专卖店！6.5万品种2-8折！</a><br>
<a href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" target="_top">China-Pub 计算机绝版图书按需印刷服务</a><br>
</div>

<div id="relative_search"><br><b>相关搜索:</b><br> <a href="http://zzk.cnblogs.com/s?w=%5b11%5d%e6%95%b0%e6%8d%ae%e6%8c%81%e4%b9%85" target="_top">[11]数据持久</a> <a href="http://zzk.cnblogs.com/s?w=%5b12%5d%e5%bc%80%e6%ba%90%e4%b8%96%e7%95%8c" target="_top">[12]开源世界</a> </div><div id="relative_search"><br><b>在知识库中查看：</b><br> <a href="http://kb.cnblogs.com/a/367978/">Castle ActiveRecord学习实践（3）：映射基础</a></div>

</div>


				
	</div><!--end: forFlow -->
	</div><!--end: mainContent 主体内容容器-->

	<div id="sideBar">
		<div id="sideBarMain">
			
<!--done-->
<div class="newsItem">
<h3 class="catListTitle">公告</h3>
	<div class="box">
<h3 class="boxtitle">个人简介</h3>
<ul>
    <li><img src="o_terrylee.png" alt=""></li>
    <li>网名：TerryLee</li>
    <li>本名：李会军</li>
    <li>位置：中国 北京</li>
    <li>请大家发邮件至</li>
    <li><img src="o_terrylee_cnblogs.png" alt="TerryLee"></li>
   </ul>
</div>
<div class="box">
<h3 class="boxtitle">关注我</h3>
<a href="http://twitter.com/TerryLeeTech"><img src="followme.png" alt="在Twitter上关注我" style="margin-left: 5px;"></a>
<a href="http://www.dotneteye.cn/blog/syndication.axd"><img src="feedadd.png" alt="订阅我的Blog" style="margin-left: 15px;"></a>
</div>
<div class="box">
<h3 class="boxtitle">我的著作</h3>
<ul>
    <li><img alt="" src="o_silverlight02.jpg" border="0"></li>
    <li>官网：<a href="http://www.dotneteye.cn/silverlight">《Silverlight 2完美征程》</a></li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">我在说</h3>
<ul id="twitter_update_list"></ul>
<a href="http://twitter.com/TerryLeeTech" id="twitter-link" style="display: block; text-align: right;">follow me on Twitter</a>
</div>
<div class="box">
<h3 class="boxtitle">MVP配置</h3>
<ul>
    <li><img alt="" src="o_o_mvp_horizontal_fullcolor_182_74.png" border="0"></li>
    <li><a href="https://mvp.support.microsoft.com/profile=8FECB25C-0CBC-432F-9F25-E2698DDF3CA1">MVP配置</a></li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">个人主页</h3>
<ul>
<li>
<a href="http://www.dotneteye.cn/"><img src="o_dotnet.png" alt=""></a>
</li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">版权声明</h3>
    <ul>
        <li>本站采用<a href="http://creativecommons.org/licenses/by-nc/2.5/" target="_top" rel="license">创作共用</a>许可
        署名，非商业
<a href="http://www.51.la/?00260513" target="_top"><img alt="51.la 专业、免费、强健的访问统计" src="icon_8.gif" style="border: medium none ;"></a>
<img style="width: 0px; height: 0px;" src="go.asp">
        </li></ul>
    </div>
<div class="box">
<h3 class="boxtitle">绿色通道</h3>
  <ul>
   <li>1.<a href="http://www.cnblogs.com/Terrylee/archive/2008/03/09/Silverlight2-step-by-step-Tutorials.html">一步一步学Silverlight 2系列</a></li>
<li>2.<a href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">.NET设计模式系列文章</a></li>
<li>3.<a href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/558683.html">ASP.NET AJAX入门系列</a></li>
<li>4.<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/387503.html">Castle开发系列文章</a></li>
<li>5.<a href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/464591.html">Enterprise Library系列</a></li>
<li><a href="http://dotnet.cnblogs.com/">博客园.NET频道</a></li>
  </ul>
</div><div id="profile_block"><a href="http://home.cnblogs.com/Terrylee/" target="_top">我的主页</a>&nbsp; <a href="http://home.cnblogs.com/Terrylee/detail/" target="_top">个人资料</a><br><a href="http://home.cnblogs.com/Terrylee/ing/" target="_top">我的闪存</a>&nbsp; <a href="http://space.cnblogs.com/msg/send/TerryLee" target="_top">发短消息</a></div>
</div>

			
			
			<div id="leftcontentcontainer">
				

<div class="mySearch">
<h3 class="catListTitle">搜索</h3>
<div class="div_my_zzk"><input value="" id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk" type="text">&nbsp;<input onclick="zzk_go()" value="找找看" id="btnZzk" class="btn_my_zzk" type="button"></div>
</div>
<div class="catListPostCategory">
<h3 class="catListTitle">随笔分类</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.cnblogs.com/Terrylee/category/48779.html">[01]&nbsp;&nbsp;.NET大本营(50)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_RssLink" title="Subscribe to [01]&amp;nbsp;&amp;nbsp;.NET大本营(50)" href="http://www.cnblogs.com/Terrylee/category/48779.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.cnblogs.com/Terrylee/category/161309.html">[02]&nbsp;&nbsp;探微知著CLR</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_RssLink" title="Subscribe to [02]&amp;nbsp;&amp;nbsp;探微知著CLR" href="http://www.cnblogs.com/Terrylee/category/161309.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.cnblogs.com/Terrylee/category/78190.html">[03]&nbsp;&nbsp;银光点亮世界(62)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_RssLink" title="Subscribe to [03]&amp;nbsp;&amp;nbsp;银光点亮世界(62)" href="http://www.cnblogs.com/Terrylee/category/78190.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.cnblogs.com/Terrylee/category/36734.html">[04]&nbsp;&nbsp;WCF后传(17)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_RssLink" title="Subscribe to [04]&amp;nbsp;&amp;nbsp;WCF后传(17)" href="http://www.cnblogs.com/Terrylee/category/36734.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.cnblogs.com/Terrylee/category/36516.html">[05]&nbsp;&nbsp;架构与设计(24)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_RssLink" title="Subscribe to [05]&amp;nbsp;&amp;nbsp;架构与设计(24)" href="http://www.cnblogs.com/Terrylee/category/36516.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_Link" href="http://www.cnblogs.com/Terrylee/category/48778.html">[06]&nbsp;&nbsp;LINQ之美(4)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_RssLink" title="Subscribe to [06]&amp;nbsp;&amp;nbsp;LINQ之美(4)" href="http://www.cnblogs.com/Terrylee/category/48778.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_Link" href="http://www.cnblogs.com/Terrylee/category/115628.html">[07]&nbsp;&nbsp;AJAX风云(15)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_RssLink" title="Subscribe to [07]&amp;nbsp;&amp;nbsp;AJAX风云(15)" href="http://www.cnblogs.com/Terrylee/category/115628.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_Link" href="http://www.cnblogs.com/Terrylee/category/37512.html">[08]&nbsp;&nbsp;Web开发(66)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_RssLink" title="Subscribe to [08]&amp;nbsp;&amp;nbsp;Web开发(66)" href="http://www.cnblogs.com/Terrylee/category/37512.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_Link" href="http://www.cnblogs.com/Terrylee/category/124829.html">[09]&nbsp;&nbsp;依赖注入(14)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_RssLink" title="Subscribe to [09]&amp;nbsp;&amp;nbsp;依赖注入(14)" href="http://www.cnblogs.com/Terrylee/category/124829.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_Link" href="http://www.cnblogs.com/Terrylee/category/36514.html">[10]&nbsp;&nbsp;模式与实践(68)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_RssLink" title="Subscribe to [10]&amp;nbsp;&amp;nbsp;模式与实践(68)" href="http://www.cnblogs.com/Terrylee/category/36514.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_Link" href="http://www.cnblogs.com/Terrylee/category/48535.html">[11]&nbsp;&nbsp;数据持久(19)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_RssLink" title="Subscribe to [11]&amp;nbsp;&amp;nbsp;数据持久(19)" href="http://www.cnblogs.com/Terrylee/category/48535.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_Link" href="http://www.cnblogs.com/Terrylee/category/53293.html">[12]&nbsp;&nbsp;开源世界(35)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_RssLink" title="Subscribe to [12]&amp;nbsp;&amp;nbsp;开源世界(35)" href="http://www.cnblogs.com/Terrylee/category/53293.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_Link" href="http://www.cnblogs.com/Terrylee/category/44974.html">[13]&nbsp;&nbsp;代码生成(23)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_RssLink" title="Subscribe to [13]&amp;nbsp;&amp;nbsp;代码生成(23)" href="http://www.cnblogs.com/Terrylee/category/44974.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_Link" href="http://www.cnblogs.com/Terrylee/category/48958.html">[14]&nbsp;&nbsp;测试与重构(3)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_RssLink" title="Subscribe to [14]&amp;nbsp;&amp;nbsp;测试与重构(3)" href="http://www.cnblogs.com/Terrylee/category/48958.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl15_Link" href="http://www.cnblogs.com/Terrylee/category/124830.html">[15]&nbsp;&nbsp;工作流基础</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl15_RssLink" title="Subscribe to [15]&amp;nbsp;&amp;nbsp;工作流基础" href="http://www.cnblogs.com/Terrylee/category/124830.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl16_Link" href="http://www.cnblogs.com/Terrylee/category/162553.html">[16]&nbsp;&nbsp;技术曲苑杂坛(1)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl16_RssLink" title="Subscribe to [16]&amp;nbsp;&amp;nbsp;技术曲苑杂坛(1)" href="http://www.cnblogs.com/Terrylee/category/162553.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl17_Link" href="http://www.cnblogs.com/Terrylee/category/160783.html">[17]&nbsp;&nbsp;并行编程(1)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl17_RssLink" title="Subscribe to [17]&amp;nbsp;&amp;nbsp;并行编程(1)" href="http://www.cnblogs.com/Terrylee/category/160783.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl18_Link" href="http://www.cnblogs.com/Terrylee/category/58451.html">[18]&nbsp;&nbsp;动态语言(4)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl18_RssLink" title="Subscribe to [18]&amp;nbsp;&amp;nbsp;动态语言(4)" href="http://www.cnblogs.com/Terrylee/category/58451.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl19_Link" href="http://www.cnblogs.com/Terrylee/category/187123.html">[19] 写作生涯(2)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl19_RssLink" title="Subscribe to [19] 写作生涯(2)" href="http://www.cnblogs.com/Terrylee/category/187123.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl20_Link" href="http://www.cnblogs.com/Terrylee/category/36735.html">[20]&nbsp;&nbsp;推荐系列(32)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl20_RssLink" title="Subscribe to [20]&amp;nbsp;&amp;nbsp;推荐系列(32)" href="http://www.cnblogs.com/Terrylee/category/36735.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl21_Link" href="http://www.cnblogs.com/Terrylee/category/36515.html">[21]&nbsp;&nbsp;数据库相关(18)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl21_RssLink" title="Subscribe to [21]&amp;nbsp;&amp;nbsp;数据库相关(18)" href="http://www.cnblogs.com/Terrylee/category/36515.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl22_Link" href="http://www.cnblogs.com/Terrylee/category/43288.html">[30]&nbsp;&nbsp;前沿报道(28)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl22_RssLink" title="Subscribe to [30]&amp;nbsp;&amp;nbsp;前沿报道(28)" href="http://www.cnblogs.com/Terrylee/category/43288.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl23_Link" href="http://www.cnblogs.com/Terrylee/category/36511.html">[31]&nbsp;&nbsp;项目管理(3)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl23_RssLink" title="Subscribe to [31]&amp;nbsp;&amp;nbsp;项目管理(3)" href="http://www.cnblogs.com/Terrylee/category/36511.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl24_Link" href="http://www.cnblogs.com/Terrylee/category/148211.html">[32]&nbsp;&nbsp;我点我评(2)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl24_RssLink" title="Subscribe to [32]&amp;nbsp;&amp;nbsp;我点我评(2)" href="http://www.cnblogs.com/Terrylee/category/148211.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl25_Link" href="http://www.cnblogs.com/Terrylee/category/51852.html">[33]&nbsp;&nbsp;我思我考(13)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl25_RssLink" title="Subscribe to [33]&amp;nbsp;&amp;nbsp;我思我考(13)" href="http://www.cnblogs.com/Terrylee/category/51852.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl26_Link" href="http://www.cnblogs.com/Terrylee/category/51900.html">[34]&nbsp;&nbsp;社区活动(9)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl26_RssLink" title="Subscribe to [34]&amp;nbsp;&amp;nbsp;社区活动(9)" href="http://www.cnblogs.com/Terrylee/category/51900.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl27_Link" href="http://www.cnblogs.com/Terrylee/category/36507.html">[35]&nbsp;&nbsp;东拉西扯(37)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl27_RssLink" title="Subscribe to [35]&amp;nbsp;&amp;nbsp;东拉西扯(37)" href="http://www.cnblogs.com/Terrylee/category/36507.html/rss">(rss)</a></li>

</ul>

</div>

<div class="catListPostArchive">
<h3 class="catListTitle">随笔档案</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl01_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/08.html">2009年8月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl02_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/05.html">2009年5月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl03_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/04.html">2009年4月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl04_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/01.html">2009年1月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl05_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/12.html">2008年12月 (4)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl06_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/11.html">2008年11月 (10)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl07_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/10.html">2008年10月 (12)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl08_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/09.html">2008年9月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl09_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/08.html">2008年8月 (5)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl10_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/07.html">2008年7月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl11_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/06.html">2008年6月 (10)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl12_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/03.html">2008年3月 (41)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl13_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/02.html">2008年2月 (5)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl14_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/01.html">2008年1月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl15_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/12.html">2007年12月 (15)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl16_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/11.html">2007年11月 (7)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl17_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/07.html">2007年7月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl18_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/04.html">2007年4月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl19_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/03.html">2007年3月 (4)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl20_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/02.html">2007年2月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl21_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/01.html">2007年1月 (6)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl22_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/12.html">2006年12月 (18)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl23_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/11.html">2006年11月 (32)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl24_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/10.html">2006年10月 (35)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl25_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/09.html">2006年9月 (19)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl26_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/08.html">2006年8月 (16)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl27_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/07.html">2006年7月 (23)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl28_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/06.html">2006年6月 (11)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl29_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/05.html">2006年5月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl30_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/04.html">2006年4月 (24)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl31_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/03.html">2006年3月 (17)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl32_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/02.html">2006年2月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl33_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/01.html">2006年1月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl34_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/12.html">2005年12月 (38)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl35_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/11.html">2005年11月 (20)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl36_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/10.html">2005年10月 (27)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl37_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/09.html">2005年9月 (10)</a> </li>

</ul>

</div>

<div class="catList">
<h3 class="catListTitle">个人站点</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_Link" href="http://terrylee.blog.51cto.com/" target="_top">TerryLee @ 51CTO</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_RssLink" title="Subscribe to TerryLee @ 51CTO" href="http://terrylee.blog.51cto.com/">(rss)</a></li>
<li style="margin-top: 2px;">我在51CTO的镜像</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_Link" href="http://weblogs.asp.net/TerryLee/" target="_top">TerryLee @ ASP.NET</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_RssLink" title="Subscribe to TerryLee @ ASP.NET" href="http://weblogs.asp.net/terrylee/rss.aspx">(rss)</a></li>
<li style="margin-top: 2px;">我在ASP.NET网站</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_Link" href="http://space.itpub.net/12184684/" target="_top">TerryLee @ IT168</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_RssLink" title="Subscribe to TerryLee @ IT168" href="http://space.itpub.net/12184684/action-rss-type-">(rss)</a></li>
<li style="margin-top: 2px;">我在IT168的镜像</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_Link" href="http://blog.joycode.com/terrylee/" target="_top">TerryLee @ 博客堂</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_RssLink" title="Subscribe to TerryLee @ 博客堂" href="http://blog.joycode.com/terrylee/Rss.aspx">(rss)</a></li>
<li style="margin-top: 2px;">我在博客堂的一片天地</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl05_Link" href="http://www.dotneteye.cn/" target="_top">个人主页</a> </li>

</ul>

</div>

<div class="catList">
<h3 class="catListTitle">我的好友</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl01_Link" href="http://chwkai.cnblogs.com/" target="_top">Aero</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl01_RssLink" title="Subscribe to Aero" href="http://chwkai.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_Link" href="http://anchky.cnblogs.com/" target="_top">anchky</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_RssLink" title="Subscribe to anchky" href="http://anchky.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl03_Link" href="http://www.cnblogs.com/anytao">Anytao</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl03_RssLink" title="Subscribe to Anytao" href="http://www.cnblogs.com/anytao/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl04_Link" href="http://www.cnblogs.com/autumoon" target="_top">Autumoon</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl04_RssLink" title="Subscribe to Autumoon" href="http://www.cnblogs.com/Autumoon/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl05_Link" href="http://www.cnblogs.com/renrenqq/" target="_top">DDL</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl05_RssLink" title="Subscribe to DDL" href="http://www.cnblogs.com/renrenqq/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl06_Link" href="http://dflying.cnblogs.com/" target="_top">Dflying Chen</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl06_RssLink" title="Subscribe to Dflying Chen" href="http://dflying.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl07_Link" href="http://dudu.cnblogs.com/" target="_top">Dudu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl07_RssLink" title="Subscribe to Dudu" href="http://dudu.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl08_Link" href="http://perhaps.cnblogs.com/" target="_top">Fantasy Soft</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl08_RssLink" title="Subscribe to Fantasy Soft" href="http://perhaps.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl09_Link" href="http://idior.cnblogs.com/" target="_top">idior</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl09_RssLink" title="Subscribe to idior" href="http://idior.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl10_Link" href="http://www.cnblogs.com/jessequ" target="_top">JesseQu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl10_RssLink" title="Subscribe to JesseQu" href="http://www.cnblogs.com/jessequ/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl11_Link" href="http://www.cnblogs.com/Jillzhang" target="_top">Jillzhang</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl11_RssLink" title="Subscribe to Jillzhang" href="http://www.cnblogs.com/jillzhang/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl12_Link" href="http://kid-li.cnblogs.com/" target="_top">kid-li</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl12_RssLink" title="Subscribe to kid-li" href="http://kid-li.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl13_Link" href="http://luking.cnblogs.com/" target="_top">luking</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl13_RssLink" title="Subscribe to luking" href="http://luking.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl14_Link" href="http://www.cnblogs.com/michellehu" target="_top">MichelleHu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl14_RssLink" title="Subscribe to MichelleHu" href="http://www.cnblogs.com/michellehu/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl15_Link" href="http://blog.csdn.net/priderock" target="_top">PrideRock的专栏</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl15_RssLink" title="Subscribe to PrideRock的专栏" href="http://feeds.feedsky.com/csdn.net/PrideRock">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl16_Link" href="http://www.cnblogs.com/isuper/" target="_top">RogerTong </a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl16_RssLink" title="Subscribe to RogerTong " href="http://www.cnblogs.com/isuper/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl17_Link" href="http://www.cnblogs.com/Sunmoonfire" target="_top">Sunmoonfire</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl17_RssLink" title="Subscribe to Sunmoonfire" href="http://www.cnblogs.com/Sunmoonfire/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl18_Link" href="http://www.cnblogs.com/teddyma" target="_top">Teddy</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl18_RssLink" title="Subscribe to Teddy" href="http://www.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl19_Link" href="http://www.cnblogs.com/wayfarer" target="_top">wayfarer</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl19_RssLink" title="Subscribe to wayfarer" href="http://www.cnblogs.com/wayfarer/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl20_Link" href="http://hjf1223.cnblogs.com/" target="_top">阿不</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl20_RssLink" title="Subscribe to 阿不" href="http://hjf1223.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl21_Link" href="http://www.cnblogs.com/bvbook" target="_top">博文视点官方博客</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl21_RssLink" title="Subscribe to 博文视点官方博客" href="http://www.cnblogs.com/bvbook/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl22_Link" href="http://www.cnblogs.com/herohuo" target="_top">大人物中的小人物</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl22_RssLink" title="Subscribe to 大人物中的小人物" href="http://www.cnblogs.com/herohuo/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl23_Link" href="http://www.cnblogs.com/dingxue" target="_top">丁学</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl23_RssLink" title="Subscribe to 丁学" href="http://www.cnblogs.com/dingxue/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl24_Link" href="http://www.cnblogs.com/guaiguai/" target="_top">怪怪</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl24_RssLink" title="Subscribe to 怪怪" href="http://www.cnblogs.com/guaiguai/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl25_Link" href="http://www.cnblogs.com/callwangxiang" target="_top">蜡笔小巢</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl25_RssLink" title="Subscribe to 蜡笔小巢" href="http://www.cnblogs.com/callwangxiang/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl26_Link" href="http://www.cnblogs.com/waxdoll/" target="_top">蜡人张</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl26_RssLink" title="Subscribe to 蜡人张" href="http://waxdoll.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl27_Link" href="http://www.cnblogs.com/jeffreyzhao" target="_top">老赵</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl27_RssLink" title="Subscribe to 老赵" href="http://www.cnblogs.com/JeffreyZhao/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl28_Link" href="http://www.joygee.com/" target="_top">李茹</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl28_RssLink" title="Subscribe to 李茹" href="feed://http//www.joygee.com/feed/">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl29_Link" href="http://www.agilelabs.cn/blogs/linkin/default.aspx" target="_top">卢彦</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl29_RssLink" title="Subscribe to 卢彦" href="http://www.agilelabs.cn/blogs/linkin/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl30_Link" href="http://zhenyulu.cnblogs.com/" target="_top">吕震宇</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl30_RssLink" title="Subscribe to 吕震宇" href="http://zhenyulu.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl31_Link" href="http://www.cnblogs.com/lbq1221119" target="_top">罗炳桥</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl31_RssLink" title="Subscribe to 罗炳桥" href="http://www.cnblogs.com/lbq1221119/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl32_Link" href="http://lixianhuei.cnblogs.com/" target="_top">难得一蠢</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl32_RssLink" title="Subscribe to 难得一蠢" href="http://lixianhuei.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl33_Link" href="http://birdshome.cnblogs.com/" target="_top">鸟食轩</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl33_RssLink" title="Subscribe to 鸟食轩" href="http://birdshome.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl34_Link" href="http://bear-study-hard.cnblogs.com/" target="_top">努力学习的熊</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl34_RssLink" title="Subscribe to 努力学习的熊" href="http://bear-study-hard.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl35_Link" href="http://blog.donews.com/crabhn/" target="_top">螃蟹</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl35_RssLink" title="Subscribe to 螃蟹" href="http://blog.donews.com/crabhn/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl36_Link" href="http://crysta10203.blog.sohu.com/" target="_top">水晶心情</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl36_RssLink" title="Subscribe to 水晶心情" href="http://tb.sogou.com/rss?ch=it&amp;desc=%CB%D1%BA%FC%B2%A9%BF%CD%B6%A9%D4%C4&amp;url=http://crysta10203.blog.sohu.com/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl37_Link" href="http://xh831213.cnblogs.com/" target="_top">小寒</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl37_RssLink" title="Subscribe to 小寒" href="http://xh831213.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl38_Link" href="http://overred.cnblogs.com/" target="_top">雁儿飞飞</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl38_RssLink" title="Subscribe to 雁儿飞飞" href="http://overred.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl39_Link" href="http://www.cnblogs.com/justinyoung" target="_top">杨正祎</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl39_RssLink" title="Subscribe to 杨正祎" href="http://www.cnblogs.com/JustinYoung/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl40_Link" href="http://goodcandle.cnblogs.com/" target="_top">源码工作室</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl40_RssLink" title="Subscribe to 源码工作室" href="http://goodcandle.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl41_Link" href="http://www.cnblogs.com/msdpe/" target="_top">张大磊</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl41_RssLink" title="Subscribe to 张大磊" href="http://www.cnblogs.com/msdpe/RSS.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl42_Link" href="http://www.cyworld.com.cn/qiansui" target="_top">张莹</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl43_Link" href="http://www.cnblogs.com/zhouyinhui" target="_top">周银辉</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl43_RssLink" title="Subscribe to 周银辉" href="http://www.cnblogs.com/zhouyinhui/rss">(rss)</a></li>

</ul>

</div>



<div class="catListBlogRank">
<h3 class="catListTitle">积分与排名</h3>
<ul>
	<li class="liScore">
		积分 -	5250874
	</li><li class="liRank">
		排名 -	3
	</li>
</ul>
</div>



<div class="catListView">
<h3 class="catListTitle">阅读排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">1.&nbsp;.NET设计模式系列文章(240785)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/ASPNET_AJAX_QuickStarts.html">2.&nbsp;ASP.NET AJAX入门系列(162046)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/09/the-ultimate-jquery-plugin-list.html">3.&nbsp;强烈推荐：240多个jQuery插件(160249)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/21/Silverlight2-step-by-step-Tutorials.html">4.&nbsp;一步一步学Silverlight 2系列文章(94439)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/25/ASPNET_AJAX_ScriptManager.html">5.&nbsp;ASP.NET AJAX入门系列（2）：使用ScriptManager控件(88540)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/Enterprise_Library.html">6.&nbsp;Enterprise Library系列文章回顾与总结(87348)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/castl_ioc_article.html">7.&nbsp;Castle 开发系列文章(87221)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293509.html">8.&nbsp;.NET设计模式（2）：单件模式（Singleton Pattern）(85295)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/09/28/246050.html">9.&nbsp;今天下午真郁闷……(79632)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/13/295965.html">10.&nbsp;.NET设计模式（3）：抽象工厂模式（Abstract Factory）(73903)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl11_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/24/ASPNET_AJAX_Quick_Starts_Overview.html">11.&nbsp;ASP.NET AJAX入门系列（1）：概述(67798)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl12_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part1.html">12.&nbsp;一步一步学Silverlight 2系列（1）：创建一个基本的Silverlight应用(49550)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl13_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310716.html">13.&nbsp;.NET设计模式（5）：工厂方法模式（Factory Method）(47209)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl14_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/29/ASPNET_AJAX_UpdatePanel_Part1.html">14.&nbsp;ASP.NET AJAX入门系列（4）：使用UpdatePanel控件（一）(44878)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl15_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">15.&nbsp;Castle ActiveRecord学习实践（1）：快速入门指南(44506)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl16_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293465.html">16.&nbsp;.NET设计模式（1）：开篇(36398)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl17_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/10/14/254631.html">17.&nbsp;Enterprise Library Step By Step系列（一）：配置应用程序块——入门篇(36023)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl18_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/19/299878.html">18.&nbsp;.NET设计模式（4）：建造者模式（Builder Pattern）(34152)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl19_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/28/306254.html">19.&nbsp;CodeSmith开发系列资料总结(30459)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl20_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/12/01/OpenSource_Framework_And_Resource_Recommendation_Overview.html">20.&nbsp;.NET开源项目介绍及资源推荐：序(30351)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl21_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part2.html">21.&nbsp;一步一步学Silverlight 2系列（2）：基本控件(29159)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl22_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/27/ASPNET_AJAX_ScriptManagerProxy.html">22.&nbsp;ASP.NET AJAX入门系列（3）：使用ScriptManagerProxy控件(28846)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl23_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/09/01/atlas_series_articles.html">23.&nbsp;Atlas学习手记系列(28339)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl24_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/23/Observer_Pattern.html">24.&nbsp;.NET设计模式（19）：观察者模式（Observer Pattern）(28231)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl25_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/01/ASPNET_AJAX_UpdatePanle_Part2.html">25.&nbsp;ASP.NET AJAX入门系列（5）：使用UpdatePanel控件（二）(27899)</a>
			</li>
		
			</ul>
		
</div>

<div class="catListFeedback">
<h3 class="catListTitle">评论排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/10/13/253667.html">1.&nbsp;如何用SQLDMO在ASP.NET页面下实现数据库的备份与恢复(395)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">2.&nbsp;.NET设计模式系列文章(355)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2009/01/05/LINQ-and-LINQ-to-SQL.html">3.&nbsp;不得不为LINQ说几句话，驳“LINQ已死”论(318)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/21/Silverlight2-step-by-step-Tutorials.html">4.&nbsp;一步一步学Silverlight 2系列文章(246)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310968.html">5.&nbsp;CodeSmith3.0开发资料下载(233)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/13/295965.html">6.&nbsp;.NET设计模式（3）：抽象工厂模式（Abstract Factory）(216)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/05/23/406688.html">7.&nbsp;新版设计模式手册[C#]下载(216)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/25/ASPNET_AJAX_ScriptManager.html">8.&nbsp;ASP.NET AJAX入门系列（2）：使用ScriptManager控件(179)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/09/the-ultimate-jquery-plugin-list.html">9.&nbsp;强烈推荐：240多个jQuery插件(168)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/ASPNET_AJAX_QuickStarts.html">10.&nbsp;ASP.NET AJAX入门系列(168)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl11_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">11.&nbsp;Castle ActiveRecord学习实践（1）：快速入门指南(166)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl12_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/castl_ioc_article.html">12.&nbsp;Castle 开发系列文章(164)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl13_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/23/Observer_Pattern.html">13.&nbsp;.NET设计模式（19）：观察者模式（Observer Pattern）(162)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl14_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/Enterprise_Library.html">14.&nbsp;Enterprise Library系列文章回顾与总结(158)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl15_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310716.html">15.&nbsp;.NET设计模式（5）：工厂方法模式（Factory Method）(158)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl16_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293509.html">16.&nbsp;.NET设计模式（2）：单件模式（Singleton Pattern）(153)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl17_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/03/21/354972.html">17.&nbsp;天津.NET俱乐部成立了！(146)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl18_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/29/ASPNET_AJAX_UpdatePanel_Part1.html">18.&nbsp;ASP.NET AJAX入门系列（4）：使用UpdatePanel控件（一）(133)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl19_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/04/TemplateEngine-Smart-Code-Preview.html">19.&nbsp;基于模板引擎的代码生成器Smart Code预览(129)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl20_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part1.html">20.&nbsp;一步一步学Silverlight 2系列（1）：创建一个基本的Silverlight应用(125)</a>
			</li>
		
			</ul>
		
</div>

			</div>
			
		</div><!--end: sideBarMain -->
	</div><!--end: sideBar 侧边栏容器 -->
	<div class="clear"></div>
	</div><!--end: main -->
	<div class="clear"></div>
	<div id="footer">
		
<!--done-->
Copyright ©2010 TerryLee
	</div><!--end: footer -->
</div><!--end: home 自定义的最大容器 -->
    </form>
	
	
      
    
    
    
</body>
</html>
